package com.itheima.dao;

import org.apache.ibatis.annotations.Select;
import org.example.Product;

import java.util.List;

public interface productMapper {
    @Select("select * from tb_product where id in " +
            "(select product_id from tb_ordersitem where orders_id = #{id})")
    List<Product> selectProductByOrdersId(int orders_id);
}
